package sis.studentinfo;

import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * User: Alex
 * Date: 26.08.12
 * Time: 13:53
 *
 * This class provides a representation of a single-semester
 * session of a specific university course.
 * @author Alexander Kalden
 *
 */
public class CourseSession extends Session {

    private static int count;

    public static CourseSession create(Course course, Date startDate) {
        incrementCount();
        return new CourseSession(course, startDate);
    }

    protected CourseSession(Course course, Date startDate) {
        super(course, startDate);
    }

    static private void incrementCount() {
        ++count;
    }

    static void resetCount() {
        count = 0;
    }

    static int getCount() {
        return count;
    }

    protected int getSessionLength() {
        return 16;
    }
}